<template>
  <div>
      <div class="bargain">
      <div class="bargain_title">
        <div>全民砍价</div>
        <div class="bargain_img">
          <img src="../assets/icon/arrow-backimg.png" alt />
        </div>
      </div>

      <div
        class="bargain_item"
        v-for="(item,index) in bargainList"
        :key="index"
        v-show="item.id>99761"
        @click="goto"
      >
        <div class="bargain_item_img">
          <img :src="item.pic" alt />
        </div>
        <div class="nargain_item_context">
          <div>
            <span>{{item.name}}</span>
            <br />
            <p class="bargain_item_title_mix">{{item.characteristic}}</p>
          </div>
          <div class="bargain_item_flex">
            <div style="color:red">
              <p>￥{{item.minPrice}}</p>
              <p>最低价</p>
            </div>
            <div>
              <p>￥{{item.originalPrice}}</p>
              <p>原价</p>
            </div>
            <div>
              <p>{{item.stores}}件</p>
              <p>限量</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
computed:{
    bargainList: function () {
      return this.$store.state.bargainList;
    },
},
methods:{
  goto(){
    this.$router.push({
      path:"/kaitemlist"
    });
  }
}
}
</script>

<style scoped>

.bargain,.Selected,.Sentiment {
  width: 100%;
  border-bottom: 20px solid #f5f5f5;
}
.bargain_title,.Selected_title,.Sentiment_title {
  width: 100%;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #e9e9e9;
}
.bargain_img,.Sentiment_img {
  height: 16px;
}
.bargain_item {
  width: 96%;
  height: 136px;
  display: flex;
  justify-content: left;
  margin: 0 auto;
  align-items: center;
  border-bottom: 1px solid #e9e9e9;
}
.bargain_item_img {
  width: 114px;
  height: 114px;
}
.bargain_item_img > img {
  width: 114px;
  height: 114px;
  border-radius: 10px;
}
.bargain_item_title_mix {
  font-size: 12px;
}
.bargain_item_flex {
  display: flex;
  justify-content: space-around;
  margin-top: 34px;
}
.bargain_item_flex p {
  font-size: 12px;
  margin: 0;
}
</style>